import requests
from lxml import etree
def get_info():
    url = 'https://passport.jd.com/new/login.aspx?sso=1&ReturnUrl=https://sso.jdl.cn/sso/redirect'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36',
    }
    res = requests.get(url,headers=headers)
    print(res.text)
    parser = etree.HTML(res.text)
    uuid = parser.xpath('//*[@id="uuid"]/@value')
    sa_token = parser.xpath('//*[@id="sa_token"]/@value')
    pubKey = parser.xpath('//*[@id="pubKey"]/@value')
    print(uuid,sa_token,pubKey)

if __name__ == "__main__":
    get_info()